﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class GetXY : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string x = (Request.Params["x"] == null) ? "" : Request.Params["x"];
        string y = (Request.Params["y"] == null) ? "" : Request.Params["y"];
        string info = (Request.Params["info"] == null) ? "" : Request.Params["info"];

        Response.Write("x=" + x + "<br>");
        Response.Write("y=" + y + "<br>");
        Response.Write("info=" + info + "<br>");

        Response.Write("<Script language='JavaScript'>alert('" + info + "," + x + "," + y + "');</Script>");

		//將資料送回給 Example.html ; 
        string strJS = "";
        strJS += " SendData('" + x + "','" + y + "','" + info + "');";
        ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "JS", strJS, true);


    }
}
